"""
    员工查询接口类
"""
import requests

from config import BASE_URL
from tools.get_header import get_header


class EmpQueryApi:
    #  查询接口方法
    @classmethod
    def emp_query(cls,param_data):
        query_url = BASE_URL+"emps"
        resp = requests.get(query_url,headers=get_header(), params=param_data)
        return resp


if __name__ == '__main__':
    print(EmpQueryApi.emp_query("name=冯海杰&gender=1").json())